tools: init.d/Linux/xencommons: load evtchn and gntdev modules
authorOlaf Hering <olaf@aepfle.de>
Thu, 1 Dec 2011 18:28:18 +0000 (18:28 +0000)
committerOlaf Hering <olaf@aepfle.de>
Thu, 1 Dec 2011 18:28:18 +0000 (18:28 +0000)
There is currently no code in the kernel to trigger autoload of the
evtchn or gntdev drivers. Load them manually during xencommons start.
Handle both pvops and xenlinux module names.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/init.d/xencommons

index 1378bef0faedd08afad2d2cd8e4a45ef075d981a..f02b25dabb1a3a989886ef77a8614f157e43878a 100644 (file)
@@ -54,6 +54,11 @@ do_start () {
         local time=0
        local timeout=30
 
+       modprobe xen-evtchn 2>/dev/null
+       modprobe xen-gntdev 2>/dev/null
+       modprobe evtchn 2>/dev/null
+       modprobe gntdev 2>/dev/null
+
        if ! `xenstore-read -s / >/dev/null 2>&1`
        then
                test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR="/var/lib/xenstored"